<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Create new user</title>
    </h:head>
    <h:body>
        <h:form>            
            <h1>Create new user</h1>

            <hr/>
            <h:messages showDetail="true"/>
            <table border="0">
                <tr>
                    <td><h:outputLabel value="Username : "/></td>
                    <td><h:inputText value="#{userController.user.username}" required="true"/>
                    </td>
                </tr>
                <tr>
                    <td><h:outputLabel value="Password :"/></td>
                    <td><h:inputSecret value="#{userController.user.password}" required="true"/></td>
                </tr>    
                <tr>
                    <td><h:outputLabel value="Confirm password :"/></td>
                    <td><h:inputSecret value="#{userController.user.confirmPassword}" required="true"/></td>
                </tr> 
            </table>            
            <h:commandButton value="Create" action="#{userController.doCreate}"/>
        </h:form>

        <h:form>
            <h:commandButton value="Back" action="#{userController.doCancel}"/>
        </h:form>
        <hr/>

    </h:body>
</html>

